package com.byedu.domain.course;
import java.io.Serializable;

/**
 * Created by weidangwang on 2017/3/6.
 */
public class QuestionDO implements Serializable{
	
	private static final long serialVersionUID = 3240440230464557425L;
	
	public QuestionDO () {}
	
	/*考题编号*/
    private Integer id;
    /*序号*/
    private int no;
    /*课程解析*/
    private String analysis;
    /*课程内容*/
    private String content;

    public String getCtype() {
        return ctype;
    }

    public void setCtype(String ctype) {
        this.ctype = ctype;
    }

    /*课程类型*/
    private String ctype;
    /*课程编号*/
    private int libraryId;

    /*唯一标识  属于冗余字段*/
    private String uniqueKey;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public int getNo() {
        return no;
    }

    public void setNo(int no) {
        this.no = no;
    }

    public String getAnalysis() {
        return analysis;
    }

    public void setAnalysis(String analysis) {
        this.analysis = analysis;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }



    public int getLibraryId() {
        return libraryId;
    }

    public void setLibraryId(int libraryId) {
        this.libraryId = libraryId;
    }

    public String getUniqueKey() {
        return uniqueKey;
    }

    public void setUniqueKey(String uniqueKey) {
        this.uniqueKey = uniqueKey;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        QuestionDO that = (QuestionDO) o;

        if (id != null ? !id.equals(that.id) : that.id != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        return id != null ? id.hashCode() : 0;
    }

    @Override
    public String toString() {
        return "QuestionDO{" +
                "id=" + id +
                ", no=" + no +
                ", analysis='" + analysis + '\'' +
                ", content='" + content + '\'' +
                ", ctype='" + ctype + '\'' +
                ", libraryId=" + libraryId +
                ", uniqueKey=" + uniqueKey +
                '}';
    }
}
